home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / usr (gcc 1.37 libs) / mac / _exit.c next >
C/C++ Source or Header  |  1993-12-10  |  276b  |  22 lines

  1. #include "crtlocal.h"
  2. #include <Scrap.h>
  3.  
  4. void __exit(int status)
  5.     {
  6.     closeall();
  7.     if (crt_myWindow)
  8.         {
  9.         TESetSelect(0, 32767, crt_TEH);
  10.         ZeroScrap();
  11.         TECopy(crt_TEH);
  12.         }
  13.     ExitToShell();
  14.     }
  15.  
  16. void (*_exit_vec)(int) = __exit;
  17.  
  18. void _exit(int stat)
  19.     {
  20.     _exit_vec(stat);
  21.     }
  22.